Skip to content

Attempting local auth but facing errors#16

Draft
ashuchow wants to merge 1 commit intoohcnetwork:mainfrom
ashuchow:auth-embed
Draft

Attempting local auth but facing errors#16
ashuchow wants to merge 1 commit intoohcnetwork:mainfrom
ashuchow:auth-embed

Conversation

@ashuchow
Copy link
Copy Markdown
Contributor

I have attempted to create a local authorisation process but am facing difficulties in implementing it. It loads to the sign in page but when clicking on the button it leads to a 404 auth error page. I have set up a test.ts file to open in the browser as http://localhost:3000/api/test but that throws an error as well so it seems that the api is not working properly. I am seeking help with respect to the same. Please review the code when you have the time as I am not able to figure it out on my own.

@ashuchow
Copy link
Copy Markdown
Contributor Author

A solution that I have been able to find is to move the api folder within app completely to a new directory called pages and keep the rest of the files within the app folder but I'm not sure of whether such a change is recommended. The API does show as working in the test file when this change is made. To implement our own custom authorisation however, we do need to install nodeemailer and have a user email and password saved in the env file. I would like some guidance on the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant